﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphicLib
{
    /// <summary>
    /// 样品数据类
    /// </summary>
    public class Sample
    {
        /// <summary>
        /// 当前选定产品的样品数据
        /// </summary>
        public static List<List<double>> variencesList = new List<List<double>>();  
        /// <summary>
        /// 日志路径
        /// </summary>
        public static readonly string LOG_PATH = @"d:\log.txt";
        /// <summary>
        /// 当前运行根路径
        /// </summary>
        public static readonly string ROOT_PATH = System.Environment.CurrentDirectory;
        /// <summary>
        /// 样品数据存储路径
        /// </summary>
        public static string SAMPLE_DATA_PATH
        {
            get 
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\sample.data";
            }
        }
        /// <summary>
        /// 产品参数数据存储路径
        /// </summary>
        public static string PARAMETERS_DATA_PATH
        {
            get
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\parameters.data";
            }
        }


        /// <summary>
        /// 新样品目录
        /// </summary>
        public static string NEW_SAMPLE_DIR
        {
            get 
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\Samples";
            }
        }
        /// <summary>
        /// 初始化过的样品目录
        /// </summary>
        public static string INITIALIZED_SAMPLE_DIR
        {
            get 
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\InitializedSamples";
            }
        }
        /// <summary>
        /// 好品目录
        /// </summary>
        public static string GOOD_PRODUCT_DIR
        {
            get
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\Good_Products";
            }
        }
        /// <summary>
        /// 坏品目录
        /// </summary>
        public static string BAD_PRODUCT_DIR
        {
            get
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\Bad_Products";
            }
        }
        /// <summary>
        /// 产品目录
        /// </summary>
        public static string PRODUCT_DIR
        {
            get
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\Products";
            }
        }
        /// <summary>
        /// 坏品学习目录
        /// </summary>
        public static string BAD_PRODUCTS_LEARNING_DIR
        {
            get
            {
                return ROOT_PATH + @"\" + SELECTED_PRODUCT + @"\BadProductsLearning";
            }
        }
        /// <summary>
        /// 产品信息数据路径
        /// </summary>
        public static string PRODUCT_INFO_DATA_PATH = ROOT_PATH + @"\productInfo.data";
        /// <summary>
        /// 当前选择产品
        /// </summary>
        public static string SELECTED_PRODUCT;
        /// <summary>
        /// 当前正在检测的产品路径
        /// </summary>
        public static string CURRENT_PRODUCT_IMAGE_PATH;
    }
}
